<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>学生列表视图</title>
</head>
<body style="width:1024px; margin:auto">
	<header th:replace="@{/common}::header"></header>
	<a th:href="@{/student/form}">增加</a>
	<table border="1" width="100%">
	<tr bgcolor="yellow">
		<th>学号</th>
		<th>姓名</th>
		<th>性别</th>
		<th>班级</th>
	</tr>
	<tr th:each="s,state:${student}">
		<td th:text="${s.id}"></td>
		<td th:text="${s.name}"></td>
		<td th:text="${s.age}"></td>
		<td th:text="${s.classes.name}"></td>
	</tr>
	</table>
	<footer th:replace="@{/common}::footer"></footer>
</body>
</html>